Skip to content

Conversation

w4
Copy link
Contributor

@w4 w4 commented Nov 11, 2024

Let me know if you want me to hide all of this behind a feature

@w4 w4 force-pushed the metrics branch 2 times, most recently from 9bd179c to dc1f037 Compare November 11, 2024 19:19
@w4
Copy link
Contributor Author

w4 commented Nov 22, 2024

Hi @blackbeam just wondering if you saw this? Thanks

@@ -220,6 +226,10 @@ impl Pool {
inner: Arc::new(Inner {
close: false.into(),
closed: false.into(),
metrics: Arc::new(Metrics {
connection_count: atomic::AtomicUsize::new(pool_opts.constraints().max()),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pool is lazy, so connection_count should start with zero i believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good spot thanks, fixed

@blackbeam blackbeam merged commit e9de7ed into blackbeam:master Dec 20, 2024
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants